AttemptContainerDetail.fromJson constructor

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

Implementation

factory AttemptContainerDetail.fromJson(Map<String, dynamic> json) {
  return AttemptContainerDetail(
    containerInstanceArn: json['containerInstanceArn'] as String?,
    exitCode: json['exitCode'] as int?,
    logStreamName: json['logStreamName'] as String?,
    networkInterfaces: (json['networkInterfaces'] as List?)
        ?.whereNotNull()
        .map((e) => NetworkInterface.fromJson(e as Map<String, dynamic>))
        .toList(),
    reason: json['reason'] as String?,
    taskArn: json['taskArn'] as String?,
  );
}