toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attributes != null) 'attributes': attributes!,
      if (createTime != null) 'createTime': createTime!,
      if (description != null) 'description': description!,
      if (discoveredWorkload != null)
        'discoveredWorkload': discoveredWorkload!,
      if (displayName != null) 'displayName': displayName!,
      if (name != null) 'name': name!,
      if (state != null) 'state': state!,
      if (uid != null) 'uid': uid!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (workloadProperties != null)
        'workloadProperties': workloadProperties!,
      if (workloadReference != null) 'workloadReference': workloadReference!,
    };