DocumentationVersions.fromJson constructor

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

Implementation

factory DocumentationVersions.fromJson(Map<String, dynamic> json) {
  return DocumentationVersions(
    items: (json['item'] as List?)
        ?.whereNotNull()
        .map((e) => DocumentationVersion.fromJson(e as Map<String, dynamic>))
        .toList(),
    position: json['position'] as String?,
  );
}