PublisherModel_Parent.fromJson constructor

PublisherModel_Parent.fromJson(
  1. Object? j
)

Implementation

factory PublisherModel_Parent.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return PublisherModel_Parent(
    displayName: switch (json['displayName']) {
      null => '',
      Object $1 => decodeString($1),
    },
    reference: switch (json['reference']) {
      null => null,
      Object $1 => PublisherModel_ResourceReference.fromJson($1),
    },
  );
}