BulkInsertOperationStatus.fromJson constructor

BulkInsertOperationStatus.fromJson(
  1. Object? j
)

Implementation

factory BulkInsertOperationStatus.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return BulkInsertOperationStatus(
    createdVmCount: switch (json['createdVmCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    deletedVmCount: switch (json['deletedVmCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    failedToCreateVmCount: switch (json['failedToCreateVmCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    status: switch (json['status']) {
      null => null,
      Object $1 => decodeString($1),
    },
    targetVmCount: switch (json['targetVmCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
  );
}