GetContainerAPIMetadataResult.fromJson constructor

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

Implementation

factory GetContainerAPIMetadataResult.fromJson(Map<String, dynamic> json) {
  return GetContainerAPIMetadataResult(
    metadata: (json['metadata'] as List?)
        ?.whereNotNull()
        .map((e) => (e as Map<String, dynamic>)
            .map((k, e) => MapEntry(k, e as String)))
        .toList(),
  );
}