ObjectTypes.fromJson constructor

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

Implementation

factory ObjectTypes.fromJson(Map<String, dynamic> json) {
  return ObjectTypes(
    base: (json['base'] as String?)?.toObjectTypeEnum(),
    destination: (json['destination'] as String?)?.toObjectTypeEnum(),
    source: (json['source'] as String?)?.toObjectTypeEnum(),
  );
}