InterfaceDef.fromJson constructor

InterfaceDef.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory InterfaceDef.fromJson(Map<String, dynamic> json) => InterfaceDef(
      methods: (json['methods'] as List)
          .map((e) => InterfaceMethodDef.fromJson(e))
          .toList(),
      properties: (json['properties'] as List)
          .map((e) => InterfacePropertyDef.fromJson(e))
          .toList(),
    );