toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (guaranteed != null) 'guaranteed': guaranteed!,
      if (name != null) 'name': name!,
      if (queueingPolicy != null) 'queueingPolicy': queueingPolicy!,
      if (reservationName != null) 'reservationName': reservationName!,
      if (spot != null) 'spot': spot!,
      if (state != null) 'state': state!,
      if (tpu != null) 'tpu': tpu!,
    };