factory Child.fromJson(Map<String, dynamic> json) { return Child( id: json['Id'] as String?, type: (json['Type'] as String?)?.toChildType(), ); }