toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (altText != null) 'altText': altText!,
      if (iconUrl != null) 'iconUrl': iconUrl!,
      if (imageType != null) 'imageType': imageType!,
      if (knownIcon != null) 'knownIcon': knownIcon!,
      if (materialIcon != null) 'materialIcon': materialIcon!,
    };