PageOfChangelogs.fromJson constructor

PageOfChangelogs.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PageOfChangelogs.fromJson(Map<String, Object?> json) {
  return PageOfChangelogs(
    startAt: (json[r'startAt'] as num?)?.toInt(),
    maxResults: (json[r'maxResults'] as num?)?.toInt(),
    total: (json[r'total'] as num?)?.toInt(),
    histories: (json[r'histories'] as List<Object?>?)
            ?.map((i) => PageOfChangelogsHistoriesItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}