FunctionReferenceData.fromJson constructor

FunctionReferenceData.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory FunctionReferenceData.fromJson(Map<String, Object?> json) {
  return FunctionReferenceData(
    displayName: json[r'displayName'] as String?,
    isList: json[r'isList'] != null
        ? FunctionReferenceDataIsList.fromValue(json[r'isList']! as String)
        : null,
    types: (json[r'types'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    value: json[r'value'] as String?,
  );
}