toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (name != null) 'name': name!,
  if (role != null) 'role': role!,
  if (targetAccount != null) 'targetAccount': targetAccount!,
  if (targetLocation != null) 'targetLocation': targetLocation!,
  if (targetType != null) 'targetType': targetType!,
};