Parent.fromJson constructor

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

Implementation

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