MacroInstance.fromJson constructor

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

Implementation

factory MacroInstance.fromJson(Map<String, Object?> json) {
  return MacroInstance(
    name: json[r'name'] as String?,
    body: json[r'body'] as String?,
    parameters: json[r'parameters'] as Map<String, Object?>?,
    links: json[r'_links'] != null
        ? GenericLinks.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
  );
}