ConnectCustomFieldValue.fromJson constructor

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

Implementation

factory ConnectCustomFieldValue.fromJson(Map<String, Object?> json) {
  return ConnectCustomFieldValue(
    type: ConnectCustomFieldValueType.fromValue(
        json[r'_type'] as String? ?? ''),
    fieldId: (json[r'fieldID'] as num?)?.toInt() ?? 0,
    issueId: (json[r'issueID'] as num?)?.toInt() ?? 0,
    number: json[r'number'] as num?,
    optionId: json[r'optionID'] as String?,
    richText: json[r'richText'] as String?,
    string: json[r'string'] as String?,
    text: json[r'text'] as String?,
  );
}