PublisherModel_Documentation.fromJson constructor

PublisherModel_Documentation.fromJson(
  1. Object? j
)

Implementation

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