factory MainChain.fromMap(Map<String, dynamic> json) => MainChain( roots: json["roots"] == null ? null : List<String>.from(json["roots"].map((x) => x)), );