getClassProperties static method

Map<String, String> getClassProperties(
  1. Type type
)

Implementation

static Map<String, String> getClassProperties(Type type) {
  final Map<String, String> properties = {};
  for (final v in reflectClass(type).declarations.values) {
    final _name = MirrorSystem.getName(v.simpleName);
    if (v is VariableMirror) {
      properties[_name] = v.type.reflectedType.toString();
    }
  }
  return properties;
}