Config.fromJson constructor

Config.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Config.fromJson(Map<String, dynamic> json) {
  if (json['change'] != null) {
    change = <Write>[];
    json['change'].forEach((v) {
      change!.add(Write.fromJson(v));
    });
  }
  if (json['read'] != null) {
    read = <Read>[];
    json['read'].forEach((v) {
      read!.add(Read.fromJson(v));
    });
  }
  if (json['write'] != null) {
    write = <Write>[];
    json['write'].forEach((v) {
      write!.add(Write.fromJson(v));
    });
  }
}