GetContainerLogResult.fromJson constructor

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

Implementation

factory GetContainerLogResult.fromJson(Map<String, dynamic> json) {
  return GetContainerLogResult(
    logEvents: (json['logEvents'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ContainerServiceLogEvent.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['nextPageToken'] as String?,
  );
}