organization.dart 544 B

123456789101112131415161718192021
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. /// 组织配置
  3. class OrganizationConfigurations {
  4. /// 动态参数配置
  5. List<DynamicParameterDTO> dynamicParams = [];
  6. Map<String, dynamic> toJson() {
  7. return {
  8. "dynamicParams": dynamicParams,
  9. };
  10. }
  11. OrganizationConfigurations fromJson(Map<String, dynamic> jsonMap) {
  12. if (jsonMap.containsKey("dynamicParams")) {
  13. final list = jsonMap["dynamicParams"] as List;
  14. dynamicParams = list.map((e) => DynamicParameterDTO.fromJson(e)).toList();
  15. }
  16. return this;
  17. }
  18. }