UiModificationDetails.fromJson constructor

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

Implementation

factory UiModificationDetails.fromJson(Map<String, Object?> json) {
  return UiModificationDetails(
    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?,
    id: json[r'id'] as String? ?? '',
    name: json[r'name'] as String? ?? '',
    self: json[r'self'] as String? ?? '',
  );
}