JoinRecord<T1 extends Entity, T2 extends Entity, D extends JoinRecordData>.fromJson constructor
JoinRecord<T1 extends Entity, T2 extends Entity, D extends JoinRecordData>.fromJson (
- dynamic json
Implementation
factory JoinRecord.fromJson(json) {
final jsonMap = json as Map<String, dynamic>;
final node = jsonMap.remove("node");
return JoinRecord<T1, T2, D>(
GraphClientConfig.read<T1>(node, isNullable: false),
GraphClientConfig.read<D>(jsonMap, typeName: '$D', isNullable: false));
}