CreateUiModificationDetails.fromJson constructor

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

Implementation

factory CreateUiModificationDetails.fromJson(Map<String, Object?> json) {
  return CreateUiModificationDetails(
    contexts: (json[r'contexts'] as List<Object?>?)
            ?.map((i) => UiModificationContextDetails.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    data: json[r'data'] as String?,
    description: json[r'description'] as String?,
    name: json[r'name'] as String? ?? '',
  );
}